projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1793ac7
)
(blink-matching-open): Allow new paren-class info.
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Sun, 20 Nov 2005 18:08:55 +0000
(18:08 +0000)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Sun, 20 Nov 2005 18:08:55 +0000
(18:08 +0000)
lisp/simple.el
patch
|
blob
|
history
diff --git
a/lisp/simple.el
b/lisp/simple.el
index a5c89dbb1d08c11a20d291246ff0951000e70320..a7551f4430cc1e49cba255ce8d72391b69d97a19 100644
(file)
--- a/
lisp/simple.el
+++ b/
lisp/simple.el
@@
-4316,7
+4316,11
@@
If nil, search stops at the beginning of the accessible portion of the buffer."
(eq (syntax-class syntax) 4)
(cdr syntax)))))
(cond
- ((not (eq matching-paren (char-before oldpos)))
+ ((not (or (eq matching-paren (char-before oldpos))
+ ;; The cdr might hold a new paren-class info rather than
+ ;; a matching-char info, in which case the two CDRs
+ ;; should match.
+ (eq matching-paren (cdr (syntax-after oldpos)))))
(message "Mismatched parentheses"))
((not blinkpos)
(if (not blink-matching-paren-distance)